package com.tueye.service.global;

import java.util.List;
import java.util.Map;

import com.tueye.base.util.Page;
import com.tueye.entity.Sys_glob_classMap;
import com.tueye.entity.TopicComment;
import com.tueye.service.exception.TuEyeServiceException;

/**
 * @author yuyue z_yuguangyue@boco.com.cn
 * 
 * version <br>
 * Copyright (C) 2009-2010 bocosoft <br>
 *           This program is protected by copyright laws. <br>
 *     
 * <br>
 *
 * Description: .提供对封装GRID常用类
 * 
 *
 * CreateTime: Jan 29, 2010  5:16:15 PM
 *
 * Change History:
 *
 *        Date             CR Number              Name              Description of change
 *
 *
 */
public interface IGlobalGridService {
	/**
	 * 分布查找表数据
	 * @param hql
	 * @param pageNo
	 * @param pageSize
	 * @param values
	 * @return
	 * @throws TuEyeServiceException
	 */
	public Page pagedQueryByHQL(String hql,  int pageNo,  int pageSize,  Object... values)throws TuEyeServiceException;
	/**
	 * 通过Page能得到相应的Class 
	 * 通过class取出相应的配制项
	 * 最终封装成相应的json串，返回给上层 
	 * @param page
	 * @param classStr
	 * @return
	 */
	
	public List<Sys_glob_classMap> getclassMap(String hql)throws TuEyeServiceException;
	
	//String getJSonStr(Page page,String classStr);
	
	String getJSonStr(List list, Map pageInfo,String classStr);
	String getJSonStr(Page page);
}
